package com.seqb.manage.role.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seqb.common.dto.CommDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色表
 * 
 * @author liangwenmin
 * @email liangwenmin@cecjx.com
 * @date 2019-11-12 14:28:59
 */
@Data
@TableName("t_role")
public class RoleDO extends CommDTO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//唯一编号
	private Long id;
	//角色名称
	private String name;
	//角色标识
	private String sign;
	//备注
	private String remark;
	//创建者编号
	@TableField(fill = FieldFill.INSERT)
	private Long createNumber;
	//创建时间
	@TableField(fill = FieldFill.INSERT)
	private Date createDate;
	//修改时间
	@TableField(fill = FieldFill.INSERT_UPDATE, update = "now()")
	private Date updateDate;
	//是否删除(0-否，1-是)
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	private String isDelete;
	//版本号
	@TableField(fill = FieldFill.INSERT_UPDATE, update = "%s+1")
	private Long version;
}
